package com.cctc.service.impl;

import com.cctc.dao.WareInfoDao;
import com.cctc.dao.WareOrderTaskDao;
import com.cctc.dao.WareSkuDao;
import com.cctc.entity.WareInfoEntity;
import com.cctc.service.WareInfoService;
import com.cctc.ware.Command;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.config.CustomScopeConfigurer;
import org.springframework.context.support.BeanDefinitionDsl;

import java.util.List;

/**
 * 仓库信息
 *
 * @author lichao
 * @email li2chao@126.com
 * @date 2024/01/13 10:55:58
 */
public class WareInfoServiceImpl implements WareInfoService {

    private WareInfoDao wareInfoDao;
    public void setWareInfoDao(WareInfoDao wareInfoDao) {
        this.wareInfoDao = wareInfoDao;
    }

    private WareSkuDao wareSkuDao;
    private WareOrderTaskDao wareOrderTaskDao;
    public WareInfoServiceImpl() {}
    public WareInfoServiceImpl(WareSkuDao wareSkuDao, WareOrderTaskDao wareOrderTaskDao) {
        this.wareSkuDao = wareSkuDao;
        this.wareOrderTaskDao = wareOrderTaskDao;
    }

    // 作为依赖的 Prototype Scope Bean 实例
    private Command command;
    public void setCommand(Command command) {
        this.command = command;
    }

    @Override
    public List<WareInfoEntity> list() {
        List<WareInfoEntity> list = wareInfoDao.list();

        return list;
    }
}